<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AutoSDK: Auto SDK HDMap Module</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AutoSDK
   </div>
   <div id="projectbrief">interface specification</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">Auto SDK HDMap Module </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><div style="margin:2%;"> </div><div style="margin:2%;"> AutoSDK class is the main entrance for all feature modules. You can get pointers of all modules. Lifecycle will be maintained internally. You don't need to release explicitly. But you have to call Release() for AutoSDK at the end. <br />
 HDMap is a module of AutoSDK, which can provide efficient HD data query function. </div><div style="margin:2%;"> </div><h2>Config AutoSDK</h2>
<div> <ul>
<li>
config data path <div> AutoSDK loads "config.ini" file at startup. data location on [DataProvider]/OfflineHDDataPath node in "config.ini" file. <br />
A child file "config.xml" set on [HDMapQuery]/QueryConfigPath node in "config.ini" file. It contains specific configuration. </div> </li>
<li>
<p class="startli">conifg load data region </p><div> In file "config.xml", the node /config/hdmapsdk/onload/tiles contains a list of "tile" node, each "tile" node represent a small region witch has a unique id. <br />
all child "tile" node on /config/hdmapsdk/onload/tiles will be load when AutoSDK startup. </div>  <h2>Use example</h2>
<pre class="fragment">#include "AutoSDK.hpp"
#include "hdmap/IHDMap.hpp"

void main()
{
    Navinfo::Engine::AutoSDK *p_AutoSDK = CreateAutoSDK();
    if(!p_AutoSDK-&gt;Config(std::string("config.ini")))
    {
        // error handling.
    }
    if(!p_AutoSDK-&gt;Start())
    {
        // error handling.
    }
    Navinfo::Engine::IHDMap *p_hdMap = p_AutoSDK-&gt;GetHDMap();
    if (p_hdMap!= nullptr){
        Navinfo::Engine::Pos3D pt;
        pt.m_Longitude = 321.17403;
        pt.m_Latitude = 31.17403;
        double distance = 1000;
        std::vector &lt;uint64_t&gt; vtLanes;
        p_hdMap-&gt;SearchLanesByRadiusRange(&amp;pt, distance, vtLanes);
        ...
    }

    p_AutoSDK-&gt;Release();
    p_AutoSDK = nullptr;
}
</pre> </li>
</ul>
</div></div></div><!-- PageDoc -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
